import request from '@/utils/request'



export function conditionList(data) { //列表
  return request({
    url: '/project-quality/api/statistics/situation/page',
    method: 'post',
    data
  })
}


export function conditionAdd(data) { //新增
  return request({
    url: '/project-quality/api/statistics/situation/add',
    method: 'post',
    data
  })
}


export function conditionEdit(data) { //编辑
  return request({
    url: '/project-quality/api/statistics/situation/edit',
    method: 'post',
    data
  })
}



export function conditionDelete(id) { //删除
  return request({
    url: '/project-quality/api/statistics/situation/del/' + id,
    method: 'get',
  })
}


export function conditionDetails(id) { //详情
  return request({
    url: '/project-quality/api/statistics/situation/' + id,
    method: 'get',
  })
}
export function onditionExport(data) { //隐患情况-导出
    return request({
      url: '/project-quality/api/statistics/situation/export',
      responseType: 'arraybuffer',
      method: 'post',
      data
    })
  }

